package cn.lhq.controller.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.lhq.bean.VoteResult;
import cn.lhq.service.UserServiceImpl;
@RequestMapping("/user")
@Controller
public class FindAllController {
	@Resource
	private UserServiceImpl userServiceImpl;
	@RequestMapping("/findAll.do")
	@ResponseBody
	public VoteResult execute(){
		VoteResult result = new VoteResult();
		try {
			result = userServiceImpl.findAll();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			result.setStatus(2);
			result.setMsg("系统出错");
		}
		return result;
	}
}
